package com.zhu.shopcenter.service;

import com.zhu.shopcenter.pojo.TradeOrder;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 订单 服务类
 * </p>
 *
 * @author zhu
 * @since 2022-08-19
 */
public interface ITradeOrderService extends IService<TradeOrder> {

    String saveOrder(String courseId, String id) throws Exception;

    TradeOrder getOrderInfo(String orderId, String id);

    Boolean buyStatus(String courseId, String id);

    List<TradeOrder> getOrderList(String id);

    boolean deleteOrderList(List<String> idList, String id);
}
